/**
 * <p>
 * Created on 2006-5-11 16:37:24 <br>
 * Copyright (c) 2006, All rights reserved.
 * </p>
 * @author Widen
 */
package com.widen.prima.action.help;

import org.eclipse.jface.action.Action;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.actions.ActionFactory;
import org.eclipse.ui.plugin.AbstractUIPlugin;

import com.widen.prima.Application;
import com.widen.prima.IImageKeys;
import com.widen.prima.Messages;
import com.widen.prima.util.Util;

public class OnlineHelpAction
    extends Action
    implements ActionFactory.IWorkbenchAction
{
    public final static String ID = "com.widen.prima.onlinehelp_action"; //$NON-NLS-1$

    public OnlineHelpAction(IWorkbenchWindow window)
    {
        setId(ID);
        setText(Messages.getString("OnlineHelpInputAction.name")); //$NON-NLS-1$
        setToolTipText(Messages.getString("OnlineHelpInputAction.tooltip")); //$NON-NLS-1$
        setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(
            Application.PLUGIN_ID,
            IImageKeys.HELP));
    }

    public void dispose()
    {
    }

    public void run()
    {
        Util.showHelpPerspective();
    }
}
